simple and crappy keyboard handler