Improve code for keyboard shortcuts
Extract keyboard keycodes