Finished deadzone functions
added button pressed and released functions