Moving key press and release events to player.js.
Adding draw method to platform.js