Player:WasKeyPressed(Player, number) shared Check if a key was pressed. Arguments player Player keys number Returns boolean Whether the key was pressed. Examples Player:WasKeyPressed – Check if a key was pressed.