Quote Originally Posted by User137 View Post
I would save readKey in a variable, because it is a complicated function? No reason to call it twice.
It's called a second time to catch the scancode.