Make F11 and F12 a bit smarter