Key event doens't trigger custom the first time in sublevel

What’s up with the Remote Event - I’m not quite familiar with this. How does it work?