Fix too much looping when holding down keys