Esc stops mouse capture
Function pointers and errors