Anyway to find out which side of spacebar been triggered?

I think you all can tell where I'm going with this lol. If this is possible I want to make the right-hand side space and left-hand side the return key.

These two switches are connected to the board for one thing but I really hope there is a way to tell which side of it is pressed.