Javascript, keypress if i use it when i want user input to be added in a list only one character i.e., the latest pressed key shows up

Eklenme Tarih 1 hour ago
Active 19
Görüntülenme 89
S

img description