So the problem was that I copied the code from morrolle, and changed variable names so its good for rubi*es/rub*, but I forgot that I copied a piece of code that resets how long are you holding down the "m" key.
Edit: The rubi*s/rub* ending works fine for me