Oops I made p button be the pause instead of esc and I forgot to write that in the description.
Thanks for the feedback! Not planning to be working on this for the rest of the summer, but I'll take the advice for future projects.