Implemented basic fps timing and modifying keyboard actions to work on key up or down