How do I check for no keyboard button pressed?

Hello, how do I check for no keyboard pressed for 10secs?