@Override
public void onKeyPress(Key key) {
    switch (key) {
        case LEFT:
            this.isRightPressed = false;
            this.isLeftPressed = true;
        case RIGHT:
            this.isLeftPressed = false;
            this.isRightPressed = true;
        case UP:
            this.isUpPressed = true;
    }
}