Some function similar to the C# function Keyboard.IsKeyPressed(...). If not. How would you go about, for example. printing a message every second until a key is pressed?