Rudimentary keydown handler