Skill not casting on press and solution?

It’s annoying and it happens a lot. I think an option to work around this is to have auto-cast for cooldown skills, similar to wow so that the input won’t be ignored.