keyboard shortcut validation