Added Input Listeners

This allows for actions to happen at only the moment that a key is
pressed.