Add cast to avoid pointer cast warning C4133
Avoid opening Windows menu from keyboard.