Added functionality to handle how SDL2 works with keyboard input.

A side-effect is that non-US keyboard layouts should work now.