is there a way to check for keypresses without having it ask for input?