accepting keyboard/joystick commands