Can now toggle mouse grab state

- Scheduler now uses nanoTime() and removed all thread sleeping

Signed-off-by: thehutch <52d5ad14@opayq.com>