It works in _input(). But is there a way to have it work in _gui_input?   