only take mouse input in mouse mode