Hello ,
Your issue is how the input is being handled when the focus is on the widget. The project does not get the release for the W key so the character will not stop moving. This can be worked around by using Set Input Mode Game and UI instead of Set Input Mode UI Only and your character will stop moving when you let go of the W key!
Good Luck creating!