Sometimes can't type symbols above numbers but shift key works
Every time that I first turn on my computer, I cannot type the symbols above the numbers on either my macbook pro keyboard or my bluetooth keyboard. This includes the dollar sign, exclamation point, at symbol, parenthesis...etc. The shift key does work because it capitalizes, but when I hit shift and the number, for example, SHIFT plus 1 to type the exclamation point, nothing happens. It eventually begins working again, sometimes after a restart or just after a few hours. I have no idea why and it's driving me crazy. Please help
MacBook Pro 13″, macOS 10.15