Optimized controls

optimized controls
Input states

Added input and released states to contorls