Key mapping issues

I am having an issue with my key mapping in my project. I am using the Roaming Ralph keymapping code. Here is my error message:

Traceback (most recent call last):
File “C:\Users*\OneDrive\Desktop\Assorted Work\Game dev**************** Minigames_5.py”, line 230, in move
if self.keyMap[“t”]:
KeyError: ‘t’
Traceback (most recent call last):
File “C:\Users*\OneDrive\Desktop\Assorted Work\Game dev**************** Minigames_5.py”, line 624, in
BOB.run()
File “C:\Users*\AppData\Local\Programs\Python\Python38-32\lib\site-packages\direct\showbase\ShowBase.py", line 3152, in run
self.taskMgr.run()
File "C:\Users*
\AppData\Local\Programs\Python\Python38-32\lib\site-packages\direct\task\Task.py”, line 541, in run
self.step()
File “C:\Users*\AppData\Local\Programs\Python\Python38-32\lib\site-packages\direct\task\Task.py", line 495, in step
self.mgr.poll()
File "C:\Users*
\OneDrive\Desktop\Assorted Work\Game dev********************* Minigames_5.py”, line 230, in move
if self.keyMap[“t”]:
KeyError: ‘t’

And this is the code that is causing the error:

if self.keyMap[“t”]:
#Made by ****************** on the //2020.
#Inspired by, well, *****…
#Watched around 6 tutorials.
#URL No.1: *****************************************************
#URL No.2: *****************************************************
#URL No.3: *****************************************************
#URL No.4: *****************************************************
#URL No.5: *****************************************************
#URL No.6: *****************************************************
#Yay! Have fun!
#P.S: With the lines that have been printed before the ‘You have selected *******’, that is just a default pygame thing. I don’t know how to disable it.
from random import randrange as rand
import pygame, sys
(etc…)
(Basically, if the T key is pressed it will just launch code.)

This is the keymap:

self.accept(“t”, self.setKey, [“t”, True])
self.accept(“t-up”, self.setKey, [“t”, False])

If you need any more info please contact me.

NEVER MIND

i fixed the problem