Moved keypress handling to separate class

This will make it easier to let the player change the keys they want to
use