These shortcuts might not work if the Alt key has been reserved for other uses, such as typing accented characters. However, there is another way: press and release the Esc key, then press B or F. This works for all Readline shortcuts that use the Alt key.