Adding an example of the justPressed function

If i saw correctly, there was no use of the justPressed function, i created a simple example that showcases the function and commented the code.