Structural changes to input and animations

Rewrote the whole input interface and improved the way the character is
animated