removed duplicate code for capture_boot_key functions