Constant practice. Also depends on the genre. For example, when it comes to shooting games, I think osu is more than adequate for training your reaction and muscle memory. For fighting games, I just play around with the moves until I get them down and can make my own combos. And so on for other genres.