Keypress lag in combat

Anyone else experiencing lag or unregistered keypresses when activating skills like Hydra?
When I’m in town Hydras seem to activate instantly when pressing button 1 on the keyboard. But when in battle I often have to press the key several times to get it to work. The same can happen with blizzard. It doesn’t necessarily have to be on button/key 1, it happens with other keys too. Other skills don’t seem to be affected but register instantly.