Added the F12 function for changing mouse modes