added control stuffs

controls method does stuff with the key pressed or mouse pressed
Added reg as a way to access things like player all over