(Hopefully) fixed keyboard input