Added detect command
Added js to handle keypress for detection toggle
Fixed to toggle facial recognition