I'm writing a game that takes input from the keyboard for actions. My problem is that the keyboard inputs don't seem to register until after the trackball is rolled (in any direction). I think what's happening is that it starts off waiting for input from the touchscreen and doesn't accept keyboard input until the trackball rolls (like the action on the home screen that makes the orange highlight box appear).
How can I tell my program to always listen for input from the keyboard?

