using checks for keydown for player controls