Controller fixes
Created by: sonninnos
- Fixed joystick port from going into mouse mode without moving it as a mouse -- Caused left/right to stay down the first time they are pressed (but not up/down) -- Came about in the multiple mouse update --- This will also happen with the mouse port if used as a joystick, and it can't be prevented without changing the default mode to joystick, but that would make mouse to not work unless mouse button is pressed, so I think we can live with it --- It could be fixed though with a dirty hack of just pressing left and right twice silently at startup, and it would not affect regular mouse usage
- Fixed broken Keyrah handling caused by a typo
- Cleaned up key processing functions
Closes #150 (closed)