Support keyPress/keyRelease