use  event instead of keypresses catch all keyboard events