catch keyboard events from input device