expose joystick support.
fix key buffer issues.