Enter and Space Bar have function

I’ve got a weird Bug. I’m building a small rts. Right now, i have a button, which activates an event in my CharacterBP.
This event spawns a ghost (of a building), which then follows the mouse. If you press mouse1, the ghost is being killed and a real building is spawned. However, if you are in the “ghost-follows-mouse-state” and press enter or space bar, a new ghost is just spawned out of nowhere. I don’t use enter or space bar anywhere. I also created input events which do nothing for this two keys.