Is it possible to make grub timeout to stop when certain key is pressed

my laptop keyboard has some problems and i guess some key is being pressed automatically in the grub menu which makes grub wait forever .

So i want to know if i can make grub timeout stop only when a certain key( arrow key) is pressed

I can’t find anything on setting the grub keys, I think you might have to edit the source to stop it being any key (I don’t really know though). However if your keyboard problems are software related they might be fixable if you can post the output of

As shown here: [HowTo] Provide System Information

  Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64 
  root=UUID=d62b0b2e-bfac-4cc0-8645-d4b67e3c6632 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
  Type: Laptop System: LENOVO product: 2324FV6 v: ThinkPad X230 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 2324FV6 serial: <filter> UEFI-[Legacy]: LENOVO 
  v: G2ETB7WW (2.77 ) date: 09/24/2019 
  ID-1: BAT0 charge: 38.7 Wh (99.5%) condition: 38.9/57.7 Wh (67.3%) 
  volts: 12.6 min: 11.1 model: SANYO 45N1031 type: Li-ion serial: <filter> 
  status: Charging 
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
  Device-2: hidpp_battery_1 model: Logitech Wireless Keyboard serial: <filter> 
  charge: 50% (should be ignored) rechargeable: yes status: N/A 
  RAM: total: 7.45 GiB used: 4.15 GiB (55.7%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
  Info: Dual Core model: Intel Core i5-3320M bits: 64 type: MT MCP 
  arch: Ivy Bridge family: 6 model-id: 3A (58) stepping: 9 microcode: 21 
  cache: L2: 3 MiB bogomips: 20761 
  Speed: 3093 MHz min/max: 1200/3300 MHz Core speeds (MHz): 1: 3093 2: 3093 
  3: 3093 4: 3093 
  Flags: acpi aes aperfmperf apic arat arch_perfmon avx bts clflush cmov 
  constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept 
  erms est f16c flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs ida 
  lahf_lm lm mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdrand 
  rdtscp rep_good sep smep smx ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp 
  syscall tm tm2 tpr_shadow tsc tsc_deadline_timer vme vmx vnmi vpid x2apic 
  xsave xsaveopt xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds status: Vulnerable: No microcode 
  Type: tsx_async_abort status: Not affected 
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Lenovo driver: i915 
  v: kernel bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300 
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo 
  bus-ID: 1-1.6:5 chip-ID: 04f2:b2eb class-ID: 0e02 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: LVDS-1 res: 1366x768 hz: 60 dpi: 125 size: 277x156mm (10.9x6.1") 
  diag: 318mm (12.5") 
  OpenGL: renderer: Mesa DRI Intel HD Graphics 4000 (IVB GT2) 
  v: 4.2 Mesa 21.2.2 compat-v: 3.0 direct render: Yes 
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20 
  class-ID: 0403 
  Sound Server-1: ALSA v: k5.13.19-2-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.37 running: yes 
  Device-1: Intel 82579LM Gigabit Network vendor: Lenovo driver: e1000e 
  v: kernel port: 6080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200 
  IF: enp0s25 state: down mac: <filter> 
  Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi 
  v: kernel port: efa0 bus-ID: 03:00.0 chip-ID: 8086:0085 class-ID: 0280 
  IF: wlp3s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-3: Sierra Wireless Sierra Wireless Gobi 3000 Modem device (MC8355) 
  type: USB driver: qcserial,qmi_wwan bus-ID: 3-4:4 chip-ID: 1199:9013 
  class-ID: 0000 
  IF: wwp0s20u4 state: down mac: <filter> 
  WAN IP: <filter> 
  Message: No bluetooth data found. 
  Message: No logical block device data found. 
  Message: No RAID data found. 
  Local Storage: total: 119 GiB used: 42.51 GiB (35.7%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Morebeck model: V602 120GB 
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 1A0 scheme: MBR 
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: TDK model: LoR TF10 
  size: 7.21 GiB block-size: physical: 512 B logical: 512 B type: N/A 
  serial: <filter> rev: PMAP scheme: MBR 
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
  Message: No optical or floppy data found. 
  ID-1: / raw-size: 85.48 GiB size: 83.58 GiB (97.78%) used: 42.51 GiB (50.9%) 
  fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: d62b0b2e-bfac-4cc0-8645-d4b67e3c6632 
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: file size: 3 GiB used: 26.8 MiB (0.9%) priority: -2 
  file: /swapfile 
  ID-1: /dev/sda2 maj-min: 8:2 size: 1024 MiB fs: ext4 label: N/A 
  uuid: 61ab7529-70f0-4bb0-9386-bcb4bc84f4c0 
  ID-2: /dev/sda3 maj-min: 8:3 size: 24.82 GiB fs: btrfs 
  label: fedora_localhost-live uuid: 528b07af-d548-4d5b-8845-273e91dc5b4d 
  ID-3: /dev/sdb1 maj-min: 8:17 size: 1.87 GiB fs: iso9660 
  ID-4: /dev/sdb2 maj-min: 8:18 size: 9.9 MiB fs: vfat label: ANACONDA 
  uuid: 33F0-62AA 
  ID-5: /dev/sdb3 maj-min: 8:19 size: 20.8 MiB fs: hfsplus label: ANACONDA 
  uuid: d8adcba8-6e8b-3d45-a7d3-fc90ddee833c 
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900 
  Device-1: 1-1.2:3 info: Imation TF10 type: Mass Storage driver: usb-storage 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 200mA chip-ID: 0718:0619 
  class-ID: 0806 serial: <filter> 
  Device-2: 1-1.6:5 info: Chicony Integrated Camera type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 200mA 
  chip-ID: 04f2:b2eb class-ID: 0e02 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 3 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev: 2.0 
  speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900 
  Hub-5: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 3-1:2 info: Logitech Unifying Receiver type: Keyboard,Mouse 
  driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 98mA chip-ID: 046d:c534 class-ID: 0301 
  Device-2: 3-2:3 info: A4Tech 2.4G Device type: Keyboard,Mouse 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 100mA chip-ID: 09da:2403 class-ID: 0301 
  Device-3: 3-4:4 
  info: Sierra Wireless Sierra Wireless Gobi 3000 Modem device (MC8355) 
  type: Network driver: qcserial,qmi_wwan interfaces: 4 rev: 2.0 
  speed: 480 Mb/s power: 500mA chip-ID: 1199:9013 class-ID: 0000 
  Hub-6: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  System Temperatures: cpu: 89.0 C mobo: N/A 
  Fan Speeds (RPM): cpu: 5373 fan-1: 
  Processes: 227 Uptime: 50m wakeups: 19 Init: systemd v: 249 tool: systemctl 
  Compilers: gcc: 11.1.0 Packages: 1292 pacman: 1280 lib: 334 flatpak: 0 
  snap: 12 Shell: Zsh v: 5.8 default: Bash v: 5.1.8 running-in: konsole 
  inxi: 3.3.06

I do not know of any grub configuration to achieve that.
You could however not use grub at all and take a look at other boot loaders or directly load the kernel from UEFI (EFISTUB.

Mind you, you’d still have to deactivate the keyboard once the system is up as random keypresses won’t do well on a running system either.

Best way forward seems to be to just open up the device and disconnect/replace the faulty keyboard.

I think you to use the any key - during boot any of these Shift, Esc,F8 will enable the menu depending on how far in the proces the system are.

i dont get random key presses after loading the os though . i do remember that my up array key stays pressed when i was using windows but it somehow vanished after installing linux.

i actually assumed that it is random key press that makes the menu wait forever .
i do see a timer for like a second in the grub menu.

From searching your laptop model the only thing I found was this:, it is designed to allow other keyboards to be mounted on the X230.
If you (or a previous owner) have used this then you will need try and fix it in the controller, but that is way beyond my skill.
If your internal keyboard is still the original then what I would do (as long as you are comfortable and know what you are doing) is remove the internal keyboard and see if there is still a problem. if not then try just reseating the cable, it might work again, but you might need to buy a new keyboard.
Also make sure you have tried the obvious - unplugging all usb devices just in case it is an external keyboard, because I can see a few external devices in your inxi output.

If you are seeing a timer and then it dissappears then it is almost certainly an incorrect keypress. does this happen on every boot, and, if so, does the timer dissappear at the same time after the menu loads each boot, and, if so, does the timer dissappear any faster if you deliberatly hold a key down?