add native event handling for keys