Added key handling and player movement.