if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT){ if(newkeys == 65536) { cmd_enter(playerid); return 1; }}Under OnPlayerKeyStateChange